<?php
/**
 * @Author: Marte
 * @Date:   2017-08-04 09:01:09
 * @Last Modified by:   Marte
 * @Last Modified time: 2017-08-26 12:28:05
 *
 */
session_start();
// echo $_SESSION['code'];

// if($_GET['error']=='1'&&isset($_GET["error"])){
//     echo "<script>alert('请输入有效的验证码！');</script>";
// }
if(!isset($_GET["error"]))
{

}else if($_GET['error']=='1'&&isset($_GET["error"]))
{
    echo "<script>alert('请输入有效的验证码！');</script>";
}
if(!isset($_GET["error"]))
{

}
else if($_GET['error']=='2')
{

    echo  "<script>alert('您输入的用户名或者邮箱已被注册,为了您的账户安全，请您重新注册！谢谢您的支持！')</script>";
}

?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <title>注册</title>
    <link rel="stylesheet" type="text/css" href="css/zhuce.css">
    <script src="js/jquery-3.2.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="yz.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
    <div class="header">
        <div class="header_box">
            <ul>
                <li><a href="index.php" title="">返回首页</a></li>
                <li><a href="" title="">帮助中心</a></li>
                <li><a href="" title="">联系我们</a></li>
            </ul>
        </div>
    </div>
    <div class="nav">
        <div class="nav_box">
        <div class="logopic">

        </div>
            <ul>
                <li>注册小墨</li>
            </ul>
            <div class="nav_right">
                <span class="on">已有账号？</span>
                <span class="active"><a href="dl.php" title="">立即登录</a></span>
            </div>
        </div>
    </div>

        <div class="container w960 mt20">
            <div id="processor" >
                <ol class="processorBox oh">
                    <li class="current">
                        <div class="step_inner fl">
                            <span class="icon_step">1</span>
                            <h4>填写基本信息</h4>
                        </div>
                    </li>
                    <li>
                        <div class="step_inner">
                            <span class="icon_step">2</span>
                            <h4>注册成功</h4>
                        </div>
                    </li>
                    <li>
                        <div class="step_inner fr">
                            <span class="icon_step">3</span>
                            <h4>完善资料</h4>
                        </div>
                    </li>
                </ol>
                <div class="step_line"></div>
            </div>
            <div class="content">
                <div id="step1" class="step hide">
                    <form action="data/user/register.php" name="fm" method="post" id="step1_frm" class="username">
                        <div class="frm_control_group">
                            <label class="frm_label">用户名</label>
                            <div class="frm_controls">
                                <input type="text" name="username" class="frm_input username" maxlength="32"  />
                                <p class="frm_tips">亲、您的用户名由字母或者数字组成，最小6位，最多16位，区分大小写哦~</p>
                            </div>
                        </div>
                        <div class="frm_control_group">
                            <label class="frm_label">邮箱</label>
                            <div class="frm_controls">
                                <input type="text" name="email" class="frm_input email" maxlength="32" class="email"  />
                                <p class="frm_tips">请输入您的常用邮箱！</p>
                            </div>
                        </div>
                        <div class="frm_control_group">
                            <label class="frm_label">密码</label>
                            <div class="frm_controls">
                                <input type="password" name="password" class="frm_input passwd" />
                                <p class="frm_tips">亲、您的密码由字母或者数字组成，最小6位，最多16位，区分大小写哦~</p>
                            </div>
                        </div>
                        <div class="frm_control_group">
                            <label class="frm_label">再次输入密码</label>
                            <div class="frm_controls">
                                <input type="password" name="prepassword" class="frm_input passwd2" />
                            </div>
                        </div>
                        <div class="frm_control_group">
                            <label class="frm_label">验证码</label>
                            <div class="frm_controls verifycode">
                                <input type="text" name="yzm" class="frm_input verifyCode" maxlength="4"/>
                                <img src="include/confirm/demo01.php" onclick="this.src='include/confirm/demo01.php?id='+Math.random()" alt="" />
                                <span > 点击图片换一张</span>
                            </div>
                        </div>
                        <div class="toolBar">
                            <input type="submit" id="nextBtn" name="submit" class="btn btn_primary" value="提交" >
                            <?php
                                if(isset($_GET['true'])){
                                    echo '<a href="javascript:;" id="nextstep" name="submit" class="btn btn_primary" >下一步</a>';
                                }
                             ?>
                                                  </div>
                    </form>
                </div><!-- // step1 end -->
                <div id="step2" class="step hide">
                    <div class="w330">
                        <strong class="f16">恭喜您成为墨悦轩的成员！ <br /></strong>
                        <p class="c7b">请点击下一步，继续完成您的基本信息！</p>

                        <div class="toolBar">



                               <a id="nextBtn" class="btn btn_primary secondstep" href="javascript:;">下一步</a>



                        </div>
                        <!-- <p class="c7b mt20">没有收到邮件？</p>
                        <p>1. 请检查邮箱地址是否正确，你可以返回 <a href="#" class="c46">重新填写</a></p>
                        <p>2. 若仍未收到确认，请尝试 <a href="#" class="c46">重新发送</a></p> -->
                    </div>
                </div><!-- // step2 end -->
                <div id="step3" class="step hide">
                    <form action="data/user/user_add_inc.php" method="post" id="step3_frm" name="add">
                     <div class="frm_control_group">
                            <label class="frm_label">注册邮箱</label>
                            <div class="frm_controls">
                                <input type="text" name="email" class="frm_input name" maxlength="32"/>
                                <p class="frm_tips">请再次填写您的注册邮箱，以便于验证您的身份，谢谢合作！</p>
                            </div>
                        </div>
                        <div class="frm_control_group">
                            <label class="frm_label">昵称</label>
                            <div class="frm_controls">
                                <input type="text" name="nickname" class="frm_input name" maxlength="32"/>
                                <p class="frm_tips">请填写您的小墨昵称，可以输入汉字哦</p>
                            </div>
                        </div>
                        <div class="frm_control_group">
                            <label class="frm_label">微信号</label>
                            <div class="frm_controls">
                                <input type="text" name="wx" class="frm_input name" maxlength="32"/>
                                <p class="frm_tips">请绑定您的微信号，方便您通过微信获取我们相关推荐以及管理您的小墨。我们承诺严格保护您的一切信息！</p>
                            </div>
                        </div>
                        <div class="frm_control_group">
                            <label class="frm_label">手机号</label>
                            <div class="frm_controls">
                                <input type="text" name="phone" class="frm_input phone"/>
                                <p class="frm_tips">请填写您的常用手机号</p>
                            </div>
                        </div>
                        <div class="frm_control_group">
                            <label class="frm_label">手机验证码</label>
                            <div class="frm_controls">
                                <input type="text" name="phoneyzm" class="frm_input phoneYzm"/>
                                <input type="button" value="获取验证码" class="btn btn_default" />
                            </div>
                        </div>
                        <div class="toolBar">
                        <input type="submit" name="submit" id="finishedBtn" class="btn btn_primary" value="完成">
                            <!-- <a id="finishedBtn" class="btn btn_primary" href="javascript:;">完成</a> -->
                        </div>
                    </form>
                </div><!-- // step3 end -->
            </div>
        </div><!-- // container end -->
<?php
        require 'include/zhuce.footer.inc.php';

?>
</body>
</html>